package com.weishu.house.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.weishu.house.entity.RoomReservation;
import com.weishu.house.mapper.RoomReservationMapper;
import com.weishu.house.service.IRoomReservationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 预约房源表 服务实现类
 * </p>
 *
 * @author gao
 * @since 2021-05-25
 */
@Service
public class RoomReservationServiceImpl extends ServiceImpl<RoomReservationMapper, RoomReservation> implements IRoomReservationService {

    @Override
    public PageInfo List(int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<RoomReservation> list =baseMapper.List();
        PageInfo pageInfo=new PageInfo(list);
        return pageInfo;
    }
}
